<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>关联etc卡用户</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
 </head>
 <body style="overflow-y: hidden" scroll="no">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="mallEtcUserController.do?save">
			<input id="id" name="id" type="hidden" value="${mallEtcUserPage.id }">
			<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							拉货宝帐号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="userName" name="userName"
							   value="${mallEtcUserPage.userName}" datatype="s1-50"
							   checkExist="lahuobao.user,user_name,id">
						<span class="Validform_checktip"></span>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							车牌号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="carno" name="carno" 
							   value="${mallEtcUserPage.carno}" datatype="*1-20" >
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							卡号:
						</label>
					</td>
					<td class="value">
						<input class="inputxt" id="cardno" name="cardno" 
							   value="${cardno}" readonly="readonly">
					</td>
				</tr>
			</table>
		</t:formvalid>
 </body>
<script type="text/javascript">
	function isCarNoUserd(){
		var carno = $("#carno").val();
		var isUsed = true;
		$.ajax({
			type : "GET",
			async : false,
			url : "vehicleTypeController.do?carno="+carno,
			dataType : "json",
			success : function(data){
				var success = data.success;
				isUsed = !success;
			}
		});
		return isUsed;
	}
</script>